package com.ala4.oxcafe.entity;

import com.ala4.oxcafe.core.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author PING
 * @version 1.0.0
 * @date 2025/8/12 13:10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("we_chat_user")
@Schema(description = "微信用户信息")
public class WeChatUser extends BaseEntity {

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @Schema(title = "用户昵称")
    private String nickName;

    @Schema(title = "手机号码")
    private String phoneNumber;

    @Schema(title = "微信openId")
    private String openId;

    @Schema(title = "微信unionId")
    private String unionId;

    @Schema(title = "头像地址")
    private String avatar;

    @Schema(title = "用户是否使用了小程序(1已使用0未使用)")
    private Integer userHaveUse;

}
